
<div class="bjui-pageHeader">
  <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('index')}" method="post">
    <div class="bjui-searchBar">
      <div class="alert alert-info search-inline"><i class="fa fa-info-circle"></i> 双击行可编辑</div>
      <button type="button" class="btn-green" data-toggle="tableditadd" data-target="#specedit" data-num="1" data-icon="plus">添加规格</button>
    </div>
  </form>
</div>
<div class="bjui-pageContent tableContent">
 <form action="{:U('edit')}" id="j_custom_form" class="pageForm" data-toggle="validate" method="post">
        <table id="specedit" class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit" data-initnum="0" data-action="{:U('update')}" data-single-noindex="true"  data-selected-multi="true">
            <thead>
                <tr data-idname="customList[#index#][id]">
                    <th title="排序" width="50"><input type="text" name="customList[#index#][sort]" class="no" data-rule="required"></th>
                    <th title="规格"><input type="text" name="customList[#index#][name]" data-rule="required" size="5"></th>
					<th title="规格代码"><input type="text" name="customList[#index#][code]" data-rule="required" size="5"></th>
                    <th title="" data-addtool="true" width="100">
                        <input type="hidden" name="customList[#index#][group_id]" value="{$group_id}">
                        <a href="{:U('remove?delrow=1')}" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗？">删</a>
                    </th>
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr data-id="{$vo.id}">
                        <td data-id-val="{$vo.sort}">{$vo.sort}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.code}</td>
                        <td data-noedit="true">
                            <input type="hidden" name="customList[#index#][id]" value="{$vo.id}">
                            <input type="hidden" name="customList[#index#][group_id]" value="{$vo.group_id}">
                            <a href="{:U('remove?id='.$vo['id'])}" class="btn btn-red row-del"
                               data-confirm-msg="确定要删除该行信息吗？">删</a>
                        </td>
                    </tr>
                </volist>
            </notempty>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
  <ul>
    <li>
      <button type="button" class="btn-close" data-icon="close">取消</button>
    </li>
    <li>
      <button type="submit" class="btn-default" data-icon="save">全部保存</button>
    </li>
  </ul>
</div>
